<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>

</head>
<body>
<div class="wrap js-check-wrap">


    <form action="{:url('hezuo/editgoods')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">


                    <input class="form-control" type="hidden" name="id" value="{$info.id}"/>

                    <tr>
                        <th class="col-md-1">合作名称<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text" name="title"
                                   id="title" required value="{$info.title}" placeholder="请输入标题"/>
                        </td>
                    </tr>

                    <tr>
                        <th class="col-md-1">联系人<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text" name="name"
                                   id="name" required value="{$info.name}" placeholder="请输入"/>
                        </td>
                    </tr>


                    <tr>
                        <th class="col-md-1">联系方式<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text" name="mobile"
                                   id="mobile" required value="{$info.mobile}" placeholder="请输入"/>
                        </td>
                    </tr>

                    <tr>
                        <th class="col-md-1">备注信息<span class="form-required">*</span></th>
                        <td>
                            <input class="form-control" type="text" name="desc"
                                   id="desc" required value="{$info.desc}" placeholder="请输入"/>
                        </td>
                    </tr>

                    <tr>
                        <th class="col-md-1">单选<span class="form-required">*</span></th>
                        <td>

                            <label class="radio-inline">
                                <input type="radio" name="status"   <if condition="$info['status'] eq 1"> checked </if> value="1"> {:lang('ENABLED')}
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="status"  <if condition="$info['status'] neq 1"> checked </if> value="0"> {:lang('DISABLED')}
                            </label>
                        </td>
                    </tr>


                </table>

                <hook name="portal_admin_article_edit_view_main"/>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" id="close" class=" btn btn-primary js-ajax-submit">{:lang('save')}</button>

                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    $(function () {

        editorcontent = new baidu.editor.ui.Editor();
        editorcontent.render('content');
        try {
            editorcontent.sync();
        } catch (err) {
        }

        $('.btn-cancel-thumbnail').click(function () {
            $('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
            $('#thumbnail').val('');
        });

    });


    $("#close").click(function (){


        setTimeout(function (){
            var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
            parent.layer.close(index); //再执行关闭

        },1200)



    })



</script>
</body>
</html>
